﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel.Channels;
using DuplexMsmqShared;
using System.ServiceModel;
using SlasheneFramework.WCF;

namespace DuplexMsmqServer
{
	class Program
	{
		static void Main(string[] args)
		{
			Binding bind = BindingFactory.Create(null);
			ServiceHost host = new ServiceHost(typeof(Conversation), new Uri("net.msmq://SHIELDP/private/server"));
			var endpoint = host.AddServiceEndpoint(typeof(IConversation), bind, "");
			endpoint.Behaviors.Add(new ReplyToBehavior());
			host.Open();
			Console.WriteLine("Open");
			while(true)
			{
			}
		}
	}
}
